#ifndef _UI_BOARD_H_
# define _UI_BOARD_H_

# include "Image.h"
# include <vector>
# include <SDL/SDL.h>

class UIBoard
{
private:
	Image* m_pieces;
	Image m_background;
	Image m_cleaner;
	bool m_canRemove;
	std::vector<SDL_Rect> m_positions;
	bool m_canMovePieces;
	bool m_canRemovePieces;

public:
	UIBoard(Sint16 _x, Sint16 _y);
	~UIBoard();

	bool draw();
	void doEvents();
	void leftClickEvent(SDL_Event& _e, int _x, int _y);
	void rightClickEvent(SDL_Event& _e, int _x, int _y);
	void middleClickEvent(SDL_Event& _e, int _x, int _y);
	void setCanMovePieces(bool _value);
	void setCanRemovePieces(bool _value);
	Image* getPiece(unsigned char _color);
	SDL_Surface* getBackground();
	void setCanRemove(bool _value);

private:
	UIBoard(UIBoard const&);
	UIBoard& operator=(UIBoard const&);
};

#endif // _UI_BOARD_H_
